﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="DTcms.Web.UI.Page.article_list" ValidateRequest="false" %>
<%@ Import namespace="System.Collections.Generic" %>
<%@ Import namespace="System.Text" %>
<%@ Import namespace="System.Data" %>
<%@ Import namespace="DTcms.Common" %>

<script runat="server">
override protected void OnInit(EventArgs e)
{

	/* 
		This page was created by DTcms Template Engine at 2017-12-03 22:28:17.
		本页面代码由DTcms模板引擎生成于 2017-12-03 22:28:17. 
	*/

	base.channel = "library";
	base.OnInit(e);
	StringBuilder templateBuilder = new StringBuilder(220000);
	const int pagesize = 20;

	templateBuilder.Append("<!DOCTYPE html>\r\n<html>\r\n");
	string category_title = get_category_title(category_id,"本馆概况");

	templateBuilder.Append("\r\n<head>\r\n    <title>");
	templateBuilder.Append(Utils.ObjectToStr(category_title));
	templateBuilder.Append("</title>\r\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n    <meta name=\"Keywords\" content=\"首都师范大学,首师大\" />\r\n    <meta name=\"baidu-site-verification\" content=\"cNitg6enc2\">\r\n    <meta name=\"apple-mobile-web-app-capable\" content=\"yes\">\r\n    <meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black\">\r\n    <meta name=\"renderer\" content=\"webkit\">\r\n    <meta name=\"robots\" content=\"index,follow\" />\r\n    <meta http-equiv=\"Cache-Control\" content=\"no-siteapp\" />\r\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\" />\r\n    <meta name=\"viewport\" content=\"width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1\" />\r\n    <link rel=\"stylesheet\" href=\"");
	templateBuilder.Append("/templates/ssd");
	templateBuilder.Append("/lib/bootstrap/css/bootstrap.min.css\">\r\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"");
	templateBuilder.Append("/templates/ssd");
	templateBuilder.Append("/css/font-awesome.min.css\">\r\n    <link type=\"text/css\" href=\"");
	templateBuilder.Append("/templates/ssd");
	templateBuilder.Append("/css/common_style.css\" rel=\"stylesheet\">\r\n    <link rel=\"stylesheet\" href=\"");
	templateBuilder.Append("/templates/ssd");
	templateBuilder.Append("/css/style.min.css\">\r\n    <link rel=\"stylesheet\" href=\"");
	templateBuilder.Append("/templates/ssd");
	templateBuilder.Append("/css/style.css\">\r\n    <!--[if lt IE 9]>\r\n	      <script src=\"https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js\"></");
	templateBuilder.Append("script>\r\n	      <script src=\"https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js\"></");
	templateBuilder.Append("script>\r\n	 <![endif]-->\r\n</head>\r\n\r\n<body>\r\n    <div class=\"topbar\">\r\n        <div class=\"container\">\r\n            <div class=\"nav-right\">\r\n                <ul class=\"topnav\">\r\n                    <li><a href=\"");
	templateBuilder.Append(linkurl("index"));

	templateBuilder.Append("\">首页</a></li>\r\n                    <li><a href=\"");
	templateBuilder.Append(linkurl("news"));

	templateBuilder.Append("\">新闻资讯</a></li>\r\n                    <li><a href=\"");
	templateBuilder.Append(linkurl("resource"));

	templateBuilder.Append("\">资源概览</a></li>\r\n                    <li><a href=\"");
	templateBuilder.Append(linkurl("services"));

	templateBuilder.Append("\">读者服务</a></li>\r\n                    <li><a href=\"");
	templateBuilder.Append(linkurl("library"));

	templateBuilder.Append("\" class=\"active\">本馆概况</a></li>\r\n                    <li><a href=\"");
	templateBuilder.Append(linkurl("help"));

	templateBuilder.Append("\">帮助</a></li>\r\n                </ul>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <div class=\"container mt20\">\r\n        <div class=\"row\">\r\n            <div class=\"col-sm-3 zk_left\">\r\n                <nav class=\"navbar-default navbar-static-side\" role=\"navigation\">\r\n                    <div class=\"nav-close\"><i class=\"fa fa-times-circle\"></i>\r\n                    </div>\r\n                    <div class=\"sidebar-collapse\">\r\n                        <ul class=\"nav\" id=\"side-menu\">\r\n                            ");
	DataTable categoryList = get_category_child_list(channel,0);

	foreach(DataRow cdr in categoryList.Rows)
	{

	                            if(cdr["title"].Equals("获取更多")){
	                              continue;
	                            }
	                            

	DataTable bcategoryList = get_category_child_list(channel,Utils.StrToInt(Utils.ObjectToStr(cdr["id"]), 0));

	templateBuilder.Append("\r\n                            \r\n                            <li>\r\n                                ");
	if (string.IsNullOrEmpty(Utils.ObjectToStr(cdr["link_url"])))
	{

	if (bcategoryList.Rows.Count==0)
	{

	templateBuilder.Append("\r\n                                <a href=\"");
	templateBuilder.Append(linkurl("library_list",Utils.ObjectToStr(cdr["id"])));

	templateBuilder.Append("\">\r\n                                ");
	}
	else
	{

	templateBuilder.Append("\r\n                                <a href=\"#\">\r\n                                ");
	}	//end for if

	}
	else
	{

	templateBuilder.Append("\r\n                                <a href=\"" + Utils.ObjectToStr(cdr["link_url"]) + "\" target=\"_blank\">\r\n                                ");
	}	//end for if

	templateBuilder.Append("\r\n\r\n\r\n                                    <span class=\"nav-label\">" + Utils.ObjectToStr(cdr["title"]) + "</span>\r\n                                </a>\r\n                                ");
	if (bcategoryList.Rows.Count>0)
	{

	templateBuilder.Append("\r\n                                <ul class=\"nav nav-second-level\">\r\n                                    ");
	foreach(DataRow dr in bcategoryList.Rows)
	{

	templateBuilder.Append("\r\n                                        <li>\r\n                                            ");
	if (string.IsNullOrEmpty(Utils.ObjectToStr(dr["link_url"])))
	{

	templateBuilder.Append("\r\n                                            <a class=\"J_menuItem\" href=\"" + Utils.ObjectToStr(dr["link_url"]) + "\">" + Utils.ObjectToStr(dr["title"]) + "</a>\r\n                                            ");
	}
	else
	{

	templateBuilder.Append("\r\n                                            <a class=\"J_menuItem\" href=\"");
	templateBuilder.Append(linkurl("resource_list",Utils.ObjectToStr(dr["id"])));

	templateBuilder.Append("\">" + Utils.ObjectToStr(dr["title"]) + "</a>\r\n                                            ");
	}	//end for if

	templateBuilder.Append("\r\n                                        </li>\r\n                                    ");
	}	//end for if

	templateBuilder.Append("\r\n                                </ul>\r\n                                ");
	}	//end for if

	templateBuilder.Append("\r\n                            </li>\r\n                            ");
	}	//end for if

	templateBuilder.Append("\r\n                        </ul>\r\n                    </div>\r\n                </nav>\r\n            </div>\r\n            <div class=\"col-sm-9 zk_right\">\r\n                <ol class=\"breadcrumb\">\r\n                    <li><a href=\"");
	templateBuilder.Append(linkurl("index"));

	templateBuilder.Append("\">首页</a></li>\r\n                    <li class=\"active\">本馆概况</li>\r\n                    <li class=\"active\">");
	templateBuilder.Append(Utils.ObjectToStr(category_title));
	templateBuilder.Append("</li>\r\n                </ol>\r\n                <!--内容体片段++++++++++++++++++++++	+++++++++++++++++++++++++++++++++++++++++++++开始-->\r\n                ");
	DataTable contentList = get_article_list(channel, category_id, pagesize, page, "status=0", out totalcount, out pagelist, "resource_list", category_id, "__id__");

	if (contentList!=null&&contentList.Rows.Count>0)
	{

	if (contentList.Rows.Count==1)
	{

	foreach(DataRow dr in contentList.Rows)
	{

	templateBuilder.Append("\r\n                <DIV id=page-content2 class=\"grid_8 alpha mt20\">\r\n                    <P align=center>\r\n                        <STRONG><H2 id=page-title class=inkline>" + Utils.ObjectToStr(dr["title"]) + "</H2></STRONG>\r\n                    </P>\r\n                    <br />\r\n                    <br />\r\n                    <DIV id=content-content class=clear-block>\r\n                        <!--<LINK rel=stylesheet type=text/css href=\"http://202.204.214.131/themes/hiroshige/css/ptable.css\">\r\n                            <LINK rel=stylesheet type=text/css href=\"http://202.204.214.131/themes/hiroshige/css/alink.css\">-->\r\n                        <DIV id=node-103 class=\"node  node-page \">\r\n                            <DIV class=content>\r\n                                " + Utils.ObjectToStr(dr["content"]) + "\r\n                            </DIV>\r\n                            <DIV class=clear></DIV>\r\n                        </DIV>\r\n                    </DIV>\r\n                </DIV>\r\n                ");
	}	//end for if

	}
	else
	{

	templateBuilder.Append("\r\n                    这里有多篇内容，需要展示列表\r\n                    ");
	}	//end for if

	}
	else
	{

	templateBuilder.Append("\r\n                <DIV id=page-content2 class=\"grid_8 alpha mt20\">\r\n                    <P align=center>\r\n                        <STRONG><H2 id=page-title class=inkline>暂无内容</H2></STRONG>\r\n                    </P>\r\n                </DIV>\r\n                ");
	}	//end for if

	templateBuilder.Append("\r\n                 \r\n                <!--分页片段+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++开始-->\r\n                <!--分页片段+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++结束-->\r\n                <!--内容体片段+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++结束-->\r\n            </div>\r\n        </div>\r\n    </div>\r\n    ");

	templateBuilder.Append("<div class=\"lib_ft\">\r\n    <div class=\"friendlink\">\r\n        <div class=\"container\">\r\n            <span>友情链接：</span>\r\n            <ul>\r\n                <li><a href=\"http://www.cnu.edu.cn/\">首都师范大学</a></li>\r\n                <li><a href=\"http://202.112.118.46/index.html\">BALIS</a></li>\r\n                <li><a href=\"http://www.calis.edu.cn/calisnew/\">CALIS</a></li>\r\n                <li><a href=\"http://www.netlib.edu.cn/\">北京高校网络图书馆</a></li>\r\n                <li><a href=\"http://202.204.214.131/service/lib_domestic\">国内网上图书馆</a></li>\r\n                <li><a href=\"http://mail.cnu.edu.cn/\">首师亿邮</a></li>\r\n                <li><a href=\"http://oa.cnu.edu.cn/\">办公系统</a></li>\r\n            </ul>\r\n        </div>\r\n    </div>\r\n    <div class=\"ft_con text-center\">\r\n        <div class=\"container\">\r\n            <p>联系方式：010-68903330 cnulib@cnu.edu.cn</p>\r\n            <p><span>访问统计：今日访问人次8899</span>&nbsp;&nbsp;<span>累计访问人次：12345678</span></p>\r\n            <p class=\"text-center\">首都师范大学图书馆版权所有</p>\r\n        </div>\r\n    </div>\r\n</div>");


	templateBuilder.Append("\r\n    <script src=\"");
	templateBuilder.Append("/templates/ssd");
	templateBuilder.Append("/lib/jquery.min.js\"></");
	templateBuilder.Append("script>\r\n    <script src=\"");
	templateBuilder.Append("/templates/ssd");
	templateBuilder.Append("/lib/bootstrap/js/bootstrap.min.js\"></");
	templateBuilder.Append("script>\r\n    <script src=\"");
	templateBuilder.Append("/templates/ssd");
	templateBuilder.Append("/lib/metisMenu/jquery.metisMenu.js\"></");
	templateBuilder.Append("script>\r\n    <script src=\"");
	templateBuilder.Append("/templates/ssd");
	templateBuilder.Append("/lib/slimscroll/jquery.slimscroll.min.js\"></");
	templateBuilder.Append("script>\r\n    <script type=\"text/javascript\">\r\n    $(document).ready(function() {\r\n\r\n\r\n        $(\"#side-menu\").metisMenu();\r\n\r\n\r\n        $(\".sidebar-collapse\").slimScroll({\r\n            height: \"100%\",\r\n            railOpacity: .9,\r\n            alwaysVisible: !1\r\n        });\r\n\r\n\r\n    });\r\n    </");
	templateBuilder.Append("script>\r\n</body>\r\n\r\n</html>");
	Response.Write(templateBuilder.ToString());
}
</script>
